package Com.amit.IO;

import java.io.FileInputStream;
import java.io.SequenceInputStream;


public class Lab5 {

	public static void main(String[] args) throws Exception {
		
FileInputStream fin1=new FileInputStream("C:\\Users\\NETA JEE\\Desktop\\Amit.txt");
		
FileInputStream fin2=new FileInputStream("C:\\Users\\NETA JEE\\Desktop\\Anil.txt");

SequenceInputStream s1=new SequenceInputStream(fin1, fin2);

int i;

while((i=s1.read())!=-1)
{
System.out.println((char)i);	
}

		
	}

}
